package org.jeecg.modules.ws.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.jeecg.modules.ws.entity.WsCompany;
import org.jeecg.modules.ws.mapper.WsCompanyMapper;
import org.jeecg.modules.ws.service.IWsCompanyService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.Collections;
import java.util.Date;
import java.util.List;

/**
 * @Description: 企业信息
 * @Author: jeecg-boot
 * @Date:   2025-04-15
 * @Version: V1.0
 */
@Service
public class WsCompanyServiceImpl extends ServiceImpl<WsCompanyMapper, WsCompany> implements IWsCompanyService {

    @Override
    public WsCompany getOneCwbb(String companyName, Date skssqq, Date skssqz) {
        LambdaQueryWrapper<WsCompany> query = Wrappers.lambdaQuery(WsCompany.class);
        query.eq(WsCompany::getCompanyName,companyName);
        query.ge(WsCompany::getSkssqq,skssqq);
        query.le(WsCompany::getSkssqz,skssqz);
        return getOne(query);
    }
}
